.class public Les/si;
.super Les/pi;
.source "RecycleFilter.java"


# instance fields
.field private final i:Ljava/lang/String;

.field private j:Ljava/util/concurrent/atomic/AtomicInteger;

.field private k:Ljava/util/HashMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/HashMap<",
            "Ljava/lang/String;",
            "Lcom/estrongs/fs/g;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method public constructor <init>(Les/fi;Ljava/util/List;)V
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Les/fi;",
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;)V"
        }
    .end annotation

    const v0, 0x7f110251

    .line 1
    invoke-direct {p0, p1, p2, v0}, Les/pi;-><init>(Les/fi;Ljava/util/List;I)V

    const-string p1, "Recycle"

    .line 2
    iput-object p1, p0, Les/si;->i:Ljava/lang/String;

    const/4 p1, 0x0

    .line 3
    iput-object p1, p0, Les/si;->k:Ljava/util/HashMap;

    .line 4
    new-instance p1, Ljava/util/concurrent/atomic/AtomicInteger;

    const/4 p2, 0x0

    invoke-direct {p1, p2}, Ljava/util/concurrent/atomic/AtomicInteger;-><init>(I)V

    iput-object p1, p0, Les/si;->j:Ljava/util/concurrent/atomic/AtomicInteger;

    return-void
.end method

.method private c()Ljava/util/HashMap;
    .locals 6
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/HashMap<",
            "Ljava/lang/String;",
            "Lcom/estrongs/fs/g;",
            ">;"
        }
    .end annotation

    .line 1
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    iput-object v0, p0, Les/si;->k:Ljava/util/HashMap;

    .line 2
    new-instance v0, Lcom/estrongs/fs/h$a;

    invoke-direct {v0}, Lcom/estrongs/fs/h$a;-><init>()V

    .line 3
    invoke-virtual {p0}, Les/li;->getPaths()Ljava/util/List;

    move-result-object v1

    invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :cond_0
    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_1

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/String;

    .line 4
    :try_start_0
    invoke-static {v2, v0}, Les/e40;->a(Ljava/lang/String;Lcom/estrongs/fs/h;)Ljava/util/List;

    move-result-object v2

    if-eqz v2, :cond_0

    .line 5
    invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :goto_1
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v3

    if-eqz v3, :cond_0

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/estrongs/fs/g;

    .line 6
    iget-object v4, p0, Les/si;->k:Ljava/util/HashMap;

    invoke-interface {v3}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5, v3}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
    :try_end_0
    .catch Lcom/estrongs/fs/FileSystemException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_1

    :catch_0
    move-exception v2

    .line 7
    invoke-virtual {v2}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_0

    .line 8
    :cond_1
    iget-object v0, p0, Les/si;->k:Ljava/util/HashMap;

    return-object v0
.end method


# virtual methods
.method protected a(Ljava/lang/String;Ljava/lang/String;)Les/ei;
    .locals 4

    .line 1
    new-instance v0, Les/ei;

    iget-object v1, p0, Les/si;->j:Ljava/util/concurrent/atomic/AtomicInteger;

    invoke-virtual {v1}, Ljava/util/concurrent/atomic/AtomicInteger;->incrementAndGet()I

    move-result v1

    iget-object v2, p0, Les/li;->d:Les/ei;

    invoke-virtual {v2}, Les/ei;->j()I

    move-result v2

    add-int/lit8 v2, v2, 0x1

    iget-object v3, p0, Les/li;->d:Les/ei;

    invoke-direct {v0, v1, v2, v3}, Les/ei;-><init>(IILes/ei;)V

    const/4 v1, 0x3

    .line 2
    invoke-virtual {v0, v1}, Les/ei;->d(I)V

    const/4 v1, 0x7

    .line 3
    invoke-virtual {v0, v1}, Les/ei;->a(I)V

    .line 4
    invoke-virtual {v0, p2}, Les/ei;->c(Ljava/lang/String;)V

    .line 5
    invoke-virtual {v0, p1}, Les/ei;->d(Ljava/lang/String;)V

    .line 6
    invoke-static {p2}, Lcom/estrongs/android/util/h0;->y(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, p1}, Les/ei;->b(Ljava/lang/String;)V

    const/4 p1, 0x2

    .line 7
    invoke-virtual {v0, p1}, Les/ei;->c(I)V

    return-object v0
.end method

.method protected a(Ljava/lang/String;)Ljava/lang/String;
    .locals 0

    return-object p1
.end method

.method protected a(Les/ei;Lcom/estrongs/android/cleaner/scandisk/f$a;)V
    .locals 4

    const/4 v0, 0x2

    .line 8
    invoke-virtual {p1, v0}, Les/ei;->c(I)V

    const/4 v0, 0x0

    .line 9
    invoke-virtual {p1, v0}, Les/ei;->a(Z)V

    .line 10
    iget-object p1, p0, Les/li;->g:Les/fi;

    iget-object v1, p2, Lcom/estrongs/android/cleaner/scandisk/f$a;->a:Ljava/lang/String;

    iget-wide v2, p2, Lcom/estrongs/android/cleaner/scandisk/f$a;->d:J

    invoke-virtual {p1, v1, v2, v3, v0}, Les/fi;->a(Ljava/lang/String;JZ)V

    return-void
.end method

.method protected a(Ljava/lang/String;Lcom/estrongs/android/cleaner/scandisk/f;)Z
    .locals 0

    const/4 p1, 0x0

    return p1
.end method

.method protected b()Ljava/lang/String;
    .locals 1

    const-string v0, "Recycle"

    return-object v0
.end method

.method protected b(Ljava/lang/String;)Ljava/lang/String;
    .locals 4

    .line 1
    iget-object v0, p0, Les/si;->k:Ljava/util/HashMap;

    invoke-virtual {v0, p1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/estrongs/fs/g;

    if-eqz v0, :cond_0

    return-object p1

    .line 2
    :cond_0
    iget-object v0, p0, Les/si;->k:Ljava/util/HashMap;

    invoke-virtual {v0}, Ljava/util/HashMap;->entrySet()Ljava/util/Set;

    move-result-object v0

    .line 3
    invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :cond_1
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_2

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/util/Map$Entry;

    .line 4
    invoke-interface {v1}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/String;

    .line 5
    invoke-virtual {p1, v2}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_1

    .line 6
    invoke-interface {v1}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/estrongs/fs/g;

    return-object v2

    :cond_2
    const/4 p1, 0x0

    return-object p1
.end method

.method public b(Lcom/estrongs/android/cleaner/scandisk/f;)V
    .locals 9

    .line 7
    monitor-enter p0

    .line 8
    :try_start_0
    iget-object v0, p0, Les/si;->k:Ljava/util/HashMap;

    if-nez v0, :cond_0

    .line 9
    invoke-direct {p0}, Les/si;->c()Ljava/util/HashMap;

    move-result-object v0

    iput-object v0, p0, Les/si;->k:Ljava/util/HashMap;

    .line 10
    :cond_0
    monitor-exit p0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 11
    iget-object v0, p1, Lcom/estrongs/android/cleaner/scandisk/f;->b:Ljava/lang/String;

    invoke-virtual {p0, v0}, Les/si;->b(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    if-nez v0, :cond_5

    .line 12
    iget v0, p1, Lcom/estrongs/android/cleaner/scandisk/f;->c:I

    const/4 v1, 0x3

    if-eq v0, v1, :cond_1

    return-void

    .line 13
    :cond_1
    iget-object v0, p1, Lcom/estrongs/android/cleaner/scandisk/f;->f:[Lcom/estrongs/android/cleaner/scandisk/f$a;

    const/4 v1, 0x0

    .line 14
    :goto_0
    iget v2, p1, Lcom/estrongs/android/cleaner/scandisk/f;->g:I

    if-ge v1, v2, :cond_4

    .line 15
    aget-object v2, v0, v1

    .line 16
    invoke-virtual {p0, v2}, Les/pi;->a(Lcom/estrongs/android/cleaner/scandisk/f$a;)Z

    move-result v3

    if-eqz v3, :cond_3

    .line 17
    iget-object v3, p0, Les/li;->c:Ljava/util/concurrent/atomic/AtomicInteger;

    invoke-virtual {v3}, Ljava/util/concurrent/atomic/AtomicInteger;->incrementAndGet()I

    move-result v3

    .line 18
    invoke-virtual {p0}, Les/si;->b()Ljava/lang/String;

    move-result-object v4

    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    const-string v6, "recycle root file: "

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v6, v2, Lcom/estrongs/android/cleaner/scandisk/f$a;->a:Ljava/lang/String;

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v6, ": "

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-wide v6, v2, Lcom/estrongs/android/cleaner/scandisk/f$a;->d:J

    invoke-virtual {v5, v6, v7}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-static {v4, v5}, Lcom/estrongs/android/util/n;->c(Ljava/lang/String;Ljava/lang/String;)V

    .line 19
    new-instance v4, Les/ei;

    iget-object v5, p0, Les/li;->d:Les/ei;

    invoke-virtual {v5}, Les/ei;->j()I

    move-result v5

    const/4 v6, 0x1

    add-int/2addr v5, v6

    iget-object v7, p0, Les/li;->d:Les/ei;

    invoke-direct {v4, v3, v5, v7}, Les/ei;-><init>(IILes/ei;)V

    const/4 v3, 0x4

    .line 20
    invoke-virtual {v4, v3}, Les/ei;->d(I)V

    .line 21
    invoke-virtual {p0}, Les/si;->getId()I

    move-result v3

    invoke-virtual {v4, v3}, Les/ei;->a(I)V

    .line 22
    iget-object v3, v2, Lcom/estrongs/android/cleaner/scandisk/f$a;->b:Ljava/lang/String;

    invoke-virtual {v4, v3}, Les/ei;->d(Ljava/lang/String;)V

    .line 23
    iget-object v3, v2, Lcom/estrongs/android/cleaner/scandisk/f$a;->b:Ljava/lang/String;

    invoke-virtual {v4, v3}, Les/ei;->b(Ljava/lang/String;)V

    .line 24
    iget-object v3, v2, Lcom/estrongs/android/cleaner/scandisk/f$a;->a:Ljava/lang/String;

    invoke-virtual {v4, v3}, Les/ei;->c(Ljava/lang/String;)V

    .line 25
    iget-wide v7, v2, Lcom/estrongs/android/cleaner/scandisk/f$a;->d:J

    invoke-virtual {v4, v7, v8}, Les/ei;->d(J)V

    .line 26
    iget-wide v7, v2, Lcom/estrongs/android/cleaner/scandisk/f$a;->e:J

    invoke-virtual {v4, v7, v8}, Les/ei;->b(J)V

    .line 27
    iget-wide v7, p1, Lcom/estrongs/android/cleaner/scandisk/f;->a:J

    invoke-virtual {v4, v7, v8}, Les/ei;->c(J)V

    .line 28
    iget-boolean v3, p1, Lcom/estrongs/android/cleaner/scandisk/f;->e:Z

    invoke-virtual {v4, v3}, Les/ei;->b(Z)V

    .line 29
    invoke-virtual {p0, v4, v2}, Les/si;->a(Les/ei;Lcom/estrongs/android/cleaner/scandisk/f$a;)V

    .line 30
    iget-object v3, p0, Les/li;->b:Ljava/util/concurrent/CopyOnWriteArrayList;

    invoke-virtual {v3}, Ljava/util/concurrent/CopyOnWriteArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v3

    :goto_1
    invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z

    move-result v5

    if-eqz v5, :cond_2

    invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Les/bi;

    .line 31
    invoke-interface {v5, v4}, Les/bi;->b(Les/ei;)V

    goto :goto_1

    .line 32
    :cond_2
    iput-boolean v6, v2, Lcom/estrongs/android/cleaner/scandisk/f$a;->f:Z

    .line 33
    iput-boolean v6, p1, Lcom/estrongs/android/cleaner/scandisk/f;->d:Z

    :cond_3
    add-int/lit8 v1, v1, 0x1

    goto/16 :goto_0

    :cond_4
    return-void

    .line 34
    :cond_5
    invoke-super {p0, p1}, Les/pi;->b(Lcom/estrongs/android/cleaner/scandisk/f;)V

    return-void

    :catchall_0
    move-exception p1

    .line 35
    :try_start_1
    monitor-exit p0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_3

    :goto_2
    throw p1

    :goto_3
    goto :goto_2
.end method

.method protected c(Lcom/estrongs/android/cleaner/scandisk/f;)Z
    .locals 0

    const/4 p1, 0x1

    return p1
.end method

.method public getId()I
    .locals 1

    const/4 v0, 0x7

    return v0
.end method
